package com.liliang.controller;


import com.liliang.entity.SysMenus;
import com.liliang.service.ISysMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liliang
 * @since 2021-11-04
 */
@Controller
@RequestMapping("/sysMenus")
public class SysMenusController {

    @Autowired
    ISysMenusService isms;

    @GetMapping("/")
    @ResponseBody
    public List<SysMenus> aa(){
        return isms.list();
    }
}

